package top.huxy.boot.model.vo;

import lombok.Data;
import top.huxy.boot.model.entity.Admin;

@Data
public class VOAdmin {
    private String username;
    private String nickname;
    private String avatar;
    private Integer role;
    private String token;

    public VOAdmin() {
    }

    public VOAdmin(Admin admin) {
        username=admin.getUsername();
        nickname=admin.getNickname();
        avatar=admin.getAvatar();
        role=admin.getRole();
    }
}
